package com.hansheng.ssdxs.http;

import com.hansheng.http.LfHttpServer;
import com.hansheng.http.annotation.RequestMethod;
import com.hansheng.http.result.IResult;
import com.hansheng.ssdxs.base.BaseHttpResBean;

import java.util.HashMap;
import java.util.Map;

/**
 * APi接口统一管理
 */
public class ApiConfig<T> extends LfHttpServer {

    /**
     *
     * @param token
     * @return
     */
    public IResult<T> rfToken(String token) {
        Map<String, Object> params = new HashMap<>();
        params.put("token", token);
        return super.execute(HttpRequest.sendHttp("/register/send_code",RequestMethod.Get,BaseHttpResBean.class), params);
    }


}
